package com.example.hotel.entity;

import java.io.Serializable;

/**
 * 结果提示实体类
 */
public class ResultModel implements Serializable{
    /**
     * 编码
     */
    private int code;
    /**
     * 消息
     */
    private String msg;
    /**
     * 数据
     */
    private Object data ;

    public ResultModel() {

    }

    public ResultModel(int errorCode, String msg, Object data) {
        this.code = errorCode;
        this.msg = msg;
        this.data = data;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
